"""
@Author  : 康帅
@Time    : 2021/5/6 10:23
@Function: if else 黑魔法
"""
age = 15

# data = "成年" if age > 18 else "未成年"

# data = {True: "成年", False: "未成年"}[age > 18]

# data = ("未成年", "已成年")[age > 18]

# data = ((age > 18) and ("已成年",) or ("未成年",))[0]

data = (lambda: "未成年", lambda: "已成年")[age > 18]()
print(data)
